package com.dapeis.web.wx.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

/**
 * @author 作者 E-mail: hzyuanyong@126.com
 * @version 创建时间：2017年5月22日 上午10:20:05 时尚圈
 */

public interface IPlanController {

    /**
     * 时尚圈列表
     * 
     * @param curreInteger
     * @param request
     * @return
     */
    @RequestMapping(value = "/list")
    public @ResponseBody JsonElement all(
	    @RequestParam(required = false) Integer currentPager,
	    HttpServletRequest request);

    /**
     * 详情
     * 
     * @param planId
     * @param request
     * @return
     */
    @RequestMapping(value = "/detail")
    public @ResponseBody JsonElement detail(@RequestParam Integer planId,
	    HttpServletRequest request);

    /**
     * 点赞
     * 
     * @param planId
     * @param request
     * @return
     */
    @RequestMapping(value = "/agree", method = RequestMethod.POST)
    public @ResponseBody JsonElement agree(@RequestParam Integer planId,
	    HttpServletRequest request);

    /**
     * 打赏
     * 
     * @param planId
     * @param money
     * @return
     */
    @RequestMapping(value = "/award", method = RequestMethod.POST)
    public @ResponseBody JsonElement award(@RequestParam Integer planId,
	    @RequestParam String money, HttpServletRequest request);

    /**
     * 搭配师
     * 
     * @param collocationId
     * @param request
     * @return
     */
    @RequestMapping("/{collocationId}/dps")
    public @ResponseBody JsonElement collocation(
	    @PathVariable Integer collocationId, HttpServletRequest request);

}
